package com.ruoyi.registrations.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.registrations.mapper.RegistrationsMapper;
import com.ruoyi.registrations.domain.Registrations;
import com.ruoyi.registrations.service.IRegistrationsService;

/**
 * 挂号记录Service业务层处理
 * 
 * @author anyunyi
 * @date 2025-05-07
 */
@Service
public class RegistrationsServiceImpl implements IRegistrationsService 
{
    @Autowired
    private RegistrationsMapper registrationsMapper;

    /**
     * 查询挂号记录
     * 
     * @param registrationId 挂号记录主键
     * @return 挂号记录
     */
    @Override
    public Registrations selectRegistrationsByRegistrationId(Long registrationId)
    {
        return registrationsMapper.selectRegistrationsByRegistrationId(registrationId);
    }

    /**
     * 查询挂号记录列表
     * 
     * @param registrations 挂号记录
     * @return 挂号记录
     */
    @Override
    public List<Registrations> selectRegistrationsList(Registrations registrations)
    {
        return registrationsMapper.selectRegistrationsList(registrations);
    }

    /**
     * 新增挂号记录
     * 
     * @param registrations 挂号记录
     * @return 结果
     */
    @Override
    public int insertRegistrations(Registrations registrations)
    {
        return registrationsMapper.insertRegistrations(registrations);
    }

    /**
     * 修改挂号记录
     * 
     * @param registrations 挂号记录
     * @return 结果
     */
    @Override
    public int updateRegistrations(Registrations registrations)
    {
        return registrationsMapper.updateRegistrations(registrations);
    }

    /**
     * 批量删除挂号记录
     * 
     * @param registrationIds 需要删除的挂号记录主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationsByRegistrationIds(Long[] registrationIds)
    {
        return registrationsMapper.deleteRegistrationsByRegistrationIds(registrationIds);
    }

    /**
     * 删除挂号记录信息
     * 
     * @param registrationId 挂号记录主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationsByRegistrationId(Long registrationId)
    {
        return registrationsMapper.deleteRegistrationsByRegistrationId(registrationId);
    }
}
